package com.self.member.config;

import com.self.member.geetest.GeetestLib;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version v1.0
 * @ClassName: GeetestConfig
 * @Description:
 * @Author: Mac
 * @Date: 2022/6/11 11:43
 */
@Configuration
public class GeetestConfig {

    @Value("${geetest.geetest-id}")
    private String geetestId;

    @Value("${geetest.geetest-key}")
    private String geetestKey;

    @Bean
    public GeetestLib geetestLib(){
        return new GeetestLib(geetestId,geetestKey);
    }
}
